package com.neusoft.yiyang.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 网关服务启动类
 * 该类启动了Spring Cloud Gateway应用，并注册到Nacos服务发现中心
 */
@SpringBootApplication
@EnableDiscoveryClient  // 启用服务注册与发现
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
    }
}